import './index.less'
import dayjs from 'dayjs'
import { IMessage } from './IMessage'
import { FC } from 'react'

const C: FC<IMessage> = ({ name, message, time }: IMessage) => {
    return <div className="message">
        <div className="message-time">{time}</div>
        <div className="message-name">{name}:</div>
        <div className="message-message">{message}</div>
    </div>
}

export default C;